package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Region;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.RegionQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IRegionService {

    void saveOrUpdate(Region region);

    PageInfo<Region> query(QueryObject qo);

    /**
     * 根据上级id查询
     * @param qo
     * @return
     */
    List<Region> listByParentId(RegionQueryObject qo);

    void changeState(Long id, int state);

    List<Region> listAll(Integer state);
}
